package common;

public class ServerResponse { 
	boolean actionSucceeded;
	int error;
	Integer[] intData;
	String[] strData;
	
	public ServerResponse(){
		this.actionSucceeded = false;
		this.error = -1;
		this.intData = null;
		this.strData = null;
	}
	
	public void setActionSucceeded(boolean value){
		this.actionSucceeded = value;
	}
	
	public void setError(int errCode){
		this.error = errCode;
	}
	
	public void setIntData(Integer[] iData) {
		this.intData = iData;
	}
	
	public void setStrData(String[] sData){
		this.strData = sData;
	}
	
	public boolean getActionSucceeded(){
		return this.actionSucceeded;
	}
	
	public int getError(){
		return this.error;
	}
	
	public Integer[] getIntData(){
		return this.intData;
	}
	
	public String[] getStrData(){
		return this.strData;
	}
	
}
